package com.whz.governance.redislimiter.config;

import com.whz.governance.redislimiter.filter.RedisRateLimitFilter;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * enable redis rate limiter filter
 * <p>
 * {@link RedisRateLimiterProperties}
 * {@link RedisRateLimitFilter}
 * </p>
 *
 * @author whz
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RedisRateLimiterConfiguration.class)
public @interface EnableRedisRateLimiter {
}